package com.futureCloudMOM.controller.system;

import com.futureCloudMOM.common.annotation.Log;
import com.futureCloudMOM.common.core.controller.BaseController;
import com.futureCloudMOM.common.core.domain.AjaxResult;
import com.futureCloudMOM.core.service.SysProcedureCallerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 文件名 SysProcedureCallerController
 *
 * @since 2023/6/7 12:34
 */
@RestController
@RequestMapping("system/procedure")
public class SysProcedureCallerController extends BaseController {

    @Autowired
    private SysProcedureCallerService sysProcedureCallerService;

    @Log(title = "同步数据表结构")
    @GetMapping("sync-table-struct")
    public AjaxResult syncTableStruct() {
        sysProcedureCallerService.syncTableStruct();
        return success();
    }

    @Log(title = "同步数据表描述")
    @GetMapping("sync-t`able-desc")
    public AjaxResult syncTableDesc() {
        sysProcedureCallerService.syncTableDesc();
        return success();
    }

}
